<?php
namespace Home\Model;
use Think\Model;
class UserAccModel extends Model 
{
    protected $_validate = array(
        array('mobile','require','手机号码必填！'), //默认情况下用正则进行验证
        array('mobile','','手机号码已经存在！',0,'unique',1),
        array('paswd','require','密码必填！'), //默认情况下用正则进行验证
        array('email','require','email必填！'),
        array('email','','email已经存在！',0,'unique',1),
        array('account','require','登录账号必填！'),
        array('qq','require','QQ必填！'),
        array('account','','登录账号已经存在！',0,'unique',1),
    );
}
?>